#include "Counter.h"
#include<stdio.h>


int main()
{
	printf("Testing the counter now\n");
	Counter<unsigned char> counter = Counter<unsigned char>(0, 13);
	for(int i = 0; i < 20; i++)
	{
		printf("Count is %d \n", counter.getCount());
		printf("flag is %d \n", counter.flag());
		if(i % 2 == 0)
			counter++;
		else
			++counter;
	}
	for(int i = 0; i < 20; i++)
	{
		printf("Count is %d \n", counter.getCount());
		printf("flag is %d \n", counter.flag());
		if(i % 2 == 0)
			counter--;
		else
			--counter;
	}

	printf("Finished testing now.\n");
}
